<?php

namespace App\Services;

use App\ShopSettings;
use Auth;

class UserService 
{
    public static function getCurrentUserShop()
    {
        $userId = Auth::user()->id;
        return ShopSettings::join('user_shop', 'user_shop.shop_id', '=', 'shop_settings.shop_id')
                    ->where('user_shop.user_id', $userId)
                    ->first();
    }
}
